<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>越野机车</title>
    <script src="js/jquery-1.12.0.min.js"></script>
    <script src="http://cdn.bootcss.com/jquery-validate/1.14.0/jquery.validate.min.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
    <script src="js/datebase.js"></script>
    <script src="js/register.js"></script>
    <script src="js/loading.js"></script>
    <script src="js/login.js"></script>
    <link href="css/index.css" type="text/css" rel="stylesheet">
    
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html{
            width: 100%;
            height: 100%;
            min-height: 523px;
            min-width: 702px;
            padding: 0px;
        }
        body {
            margin: 0 auto;
            width: 100%;
            height: 100%;
        }
        .outbox{
            margin: 0 auto;
            width: 100%;
            height: 100%;
            background-image: url("imgs/login_bg.jpg");
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat; 
            position: relative; 
        }
        .outbox::before{
            display: inline-block;
            vertical-align: middle;
            height: 100%;
            width: 0px;
            content: '';
        }
        #outdiv{
            height: 424px;
            vertical-align: middle;
            width: calc(100% - 40px);
            display: inline-block;

        }
        label.error{
            margin-left:130px;
            position: absolute;
            top: 70px;
            color: red;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <!--<div id="outdiv"></div>-->
</body>
<script>

    function Director($me){
        this.runSence = function(sence){
            $me.empty();
            sence.$outbox.appendTo($me);
        };

    }


    $(function(){
        director = new Director($("body"));
        director.runSence(new LoginSence());
///*        var $login=new LoginSence($("body"));
//        $("#reg").click(function(){
//            window.location.href='register.html';
//        });
    });


</script>
</html>